package com.intelligentclass.repositories;

import jakarta.persistence.criteria.CriteriaBuilder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.intelligentclass.entity.Comment;

import java.util.List;

@Repository
public interface CommentRepository extends JpaRepository<Comment, Integer> {
    List<Comment> findByCommentCid(String commentCid);
    Comment findByCommentId(Integer commentId);
    List<Comment> findByCommentTextContainingAndCommentCid(String text, String cid);
}


